package com.lzw.breezeNovel.model.enums.user;

import com.fasterxml.jackson.annotation.JsonValue;
import com.lzw.breezeNovel.model.enums.BaseEnum;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.model.enums
 * @date 2025/2/27
 * @description 状态枚举
 */
@SuppressWarnings("all")
public enum BaseStatus implements BaseEnum {


    ENABLE(1, "正常"),

    DISABLE(0, "禁用");


    @JsonValue
    private Integer code;

    private String name;

    BaseStatus(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getName() {
        return this.name;
    }
}
